import axios from "axios";

export let get_list =  () =>{
    return async (dispatch) =>{
        let data = await axios.get("/tabs")
        const action = {
            type:"GET_LIST",
            payload: data.data.list
        }
        return dispatch(action)
    }
}

export let set_Active = (index) =>{
    return {
        type:"SET_ACTIVE",
        payload:index
    }
}

export let set_ListChildren = (index) =>{
    return {
        type:"SET_LISTCHILDREN",
        payload:index
    }
}